<div id="sg">
<?php
echo "<select id='hang' name='hang'>";
    foreach ($hang as $item)
    {
        if ($file["fldMaHang"] == $item["fldMaHang"])
        {
                    echo "<option value='".$item["fldMaHang"]."' selected='selected'>";
        echo $item["fldTenHang"];
        echo "</option>";
        }
        else
        {
                    echo "<option value='".$item["fldMaHang"]."'>";
        echo $item["fldTenHang"];
        echo "</option>";
        }

    }
    echo "</select>";
?>
</div>
